/*  ----------------------------------------------------------------------
  INSERTION WRAPPERS
  example:  anchor.addToBottom(element);
  ---------------------------------------------------------------------- */
var InsertionWrappers = {};
for (prop in Insertion) {
  var methodName = (prop == 'Top' || prop == 'Bottom') ? 'To' + prop : prop;
  InsertionWrappers['add' + methodName] = buildInsertionWrapper(prop);
}
function buildInsertionWrapper(prop) {
  return function(element, insertable) {
    new Insertion[prop](element, insertable);
  };
}
Element.addMethods(InsertionWrappers);